import { Base } from '../../utils/base.js'; //调用基类的时候 
// 步骤1.import { Base } from '../../utils/base.js';
//     2. extends Base
//     3.constructor(){
//       super();
//     }

class AddressList extends Base {
  constructor() {
    super();
  }

  getAddress(callBack) {
    var params = {
      url: 'getAddress/',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

  getUpdateStyle(id, callBack) {
    var params = {
      url: 'getUpdateStyle/' + id,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

  getdelete(id, callBack) {
    var params = {
      url: 'getdelete/' + id,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

  getUpdate(id, callBack) {
    var params = {
      url: 'getUpdate/' + id,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

}

export { AddressList };